import Vue from 'vue';
import httpAxios from '../until/httpAxios'
import api   from './api'
import getDate from '../until/getDate'
import {
  Input,
  Button,
  Message,
  Container,
  Header,
  Aside,
  Main,
  Menu,
  Submenu,
  MenuItem,
  Table,
  TableColumn,
  Breadcrumb,
  BreadcrumbItem,
  MessageBox,
  Dialog,
  Popover,
  Tooltip,
  Popconfirm,
  Select,
  Option,
  Pagination

} from 'element-ui';

Vue.use(Input);
Vue.use(Button);
Vue.use(Select);
Vue.use(Option);
Vue.use(Container);
Vue.use(Pagination);
Vue.use(Header);
Vue.use(Aside);
Vue.use(Main);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItem);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Breadcrumb);
Vue.use(BreadcrumbItem);
Vue.use(Dialog);
Vue.use(Popover);
Vue.use(Tooltip);
Vue.use(Popconfirm);

Vue.prototype.$message   = Message;
Vue.prototype.$httpAxios = httpAxios;
Vue.prototype.$msgbox    = MessageBox;
Vue.prototype.$alert     = MessageBox.alert;
Vue.prototype.$confirm   = MessageBox.confirm;
Vue.prototype.$api       = api;
Vue.prototype.$getDate   = getDate;
Vue.prototype.localStorage = localStorage
Vue.prototype.$ELEMENT = { size: 'small', zIndex: 3000 };
